
package code.codeworld.user.user.service;


import code.codeworld.user.user.model.User;
import code.codeworld.user.user.model.vo.UserVo;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * UserService接口
 *
 * @author freecode
 * @date  2023/03/23 00:20
 **/
public interface UserService {

    /**
     * 获取User分页
     *
     * @author freecode
     * @date  2023/03/23 00:20
     */
    Page<User> page(UserVo UserVo);

    /**
     * 添加User
     *
     * @author freecode
     * @date  2023/03/23 00:20
     */
    void add(User User);

    /**
     * 编辑User
     *
     * @author freecode
     * @date  2023/03/23 00:20
     */
    void edit(User User);

    /**
     * 删除User
     *
     * @author freecode
     * @date  2023/03/23 00:20
     */
    void delete(List<User> UserList);

    /**
     * 获取User详情
     *
     * @author freecode
     * @date  2023/03/23 00:20
     */
    User detail(User User);

    /**
     * 获取User详情
     *
     * @author freecode
     * @date  2023/03/23 00:20
     **/
    User queryEntity(Long id);

}
